package com.ruoyi.web.controller.app;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.PushBody;
import com.ruoyi.common.utils.push.JiGuangPushService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: ruohao
 * @Date: 2023/11/16
 **/
@RestController
@RequestMapping("/app/push")
public class PushController extends BaseController {
    @Resource
    private JiGuangPushService service;

    @GetMapping("/test")
    public AjaxResult test(PushBody pushBody) {
        service.pushAll(pushBody);
        return success();
    }
}
